package com.itheima.Test;

import java.util.Scanner;

public class LoopTest02 {
    public static void main(String[] args) {
        System.out.println("请输入一个大于2的整数：");
        Scanner sc = new Scanner(System.in);
        int num1 = sc.nextInt();
        int num2 = 2;
        int a = 0;
        int reuslt = 0;
        while(a <= num1) {
            reuslt = num2++;
            a = num2 * num2;
        }
        System.out.println(reuslt);
    }
}
